<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <!-- 导包 -->
  <link type="text/css" rel="stylesheet" href="./libs/jedate/css/jeDate-test.css">
  <link rel="stylesheet" href="./libs/jedate/css/jedate.css">
  <script src="./libs/jedate/js/jedate.js"></script>

</head>

<body>
  <div class="jeitem">
    <label class="jelabel">发布时间</label>
    <div class="jeinpbox">
      <input type="text" class="jeinput" id="testico" placeholder="YYYY-MM-DD">
      <div class="icons jebtns"
        onclick="jeDate('#testico',{trigger:false,format: 'YYYY-MM-DD',theme: { bgcolor: '#00A680', pnColor: '#00DDAA' }})">
      </div>
    </div>
  </div>
  <button id="btn">获取时间</button>

  <form method="post">
    <textarea id="mytextarea"></textarea>
  </form>

  <script src="./libs/tinymce/tinymce.min.js"></script>

  <!--初始化tinymce-->
  <script type="text/javascript">
    tinymce.init({
      selector: '#mytextarea',
      language: 'zh_CN',
      directionality: 'ltl',
      browser_spellcheck: true,
      contextmenu: false,
      plugins: [
        "advlist autolink lists link image charmap print preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste imagetools wordcount",
        "code"
      ],
      toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code",

    });
			/*tinymce.activeEditor.uploadImages(function(success) {
$.post('ajax/post.do', tinymce.activeEditor.getContent()).done(function() {
console.log("Uploaded images and posted content as an ajax request.");
});
});*/
  </script>

  <script>

    //加载日期插件
    jeDate('#testico', {
      trigger: 'click',
      theme: { bgcolor: "#00A680", pnColor: "#00DDAA" },//绿色主题
      format: "YYYY-MM-DD",
      isinitVal: true,
    });

    document.querySelector('#btn').onclick = function () {
      console.log(document.querySelector('#testico').value);
    };
  </script>
</body>

</html>